package com.ruoyi.people.search.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户搜索列表对象 user_search
 * 
 * @author yjy
 * @date 2025-06-07
 */
public class UserSearch extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 行为id */
    @Excel(name = "行为id")
    private Long searchId;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    private String userName;
    /** 搜索关键词 */
    @Excel(name = "搜索关键词")
    private String keyword;

    /** 开始时间（用于范围查询） */
    private String beginTime;

    /** 结束时间（用于范围查询） */
    private String endTime;

    /** 搜索时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") // 添加时分秒格式
    @Excel(name = "搜索时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date searchTime;

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public void setSearchId(Long searchId)
    {
        this.searchId = searchId;
    }

    public Long getSearchId() 
    {
        return searchId;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setKeyword(String keyword) 
    {
        this.keyword = keyword;
    }

    public String getKeyword() 
    {
        return keyword;
    }

    public void setSearchTime(Date searchTime) 
    {
        this.searchTime = searchTime;
    }

    public Date getSearchTime() 
    {
        return searchTime;
    }

    public String getBeginTime() {
        return beginTime;
    }

    public void setBeginTime(String beginTime) {
        this.beginTime = beginTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("searchId", getSearchId())
            .append("userId", getUserId())
            .append("keyword", getKeyword())
            .append("searchTime", getSearchTime())
            .append("beginTime",getBeginTime())
                .append("endTime",getEndTime())
            .toString();
    }


}
